'use strict';

angular.module('myApp.boundPhone', ['ngRoute'])

    .config(['$routeProvider', function($routeProvider) {
        $routeProvider.when('/boundPhone/:state', {
            templateUrl: 'pickup/boundPhone.html',
            controller: 'boundPhoneCtrl'
        });
    }])

    .controller('boundPhoneCtrl',['lHTTP','lPop','$scope','$routeParams','$http',function(lHTTP,lPop,$scope,$routeParams,$http) {
        gHttp = $http;
        console.log("state====="+$routeParams.state);
        $.boundPhone(lHTTP,lPop,$scope);
        //$.getSignature(lHTTP,$routeParams,lPop,$scope);
    }]);